PowerTCP Mail for .NET
Invoke(String,Byte[]) Method




The command to send to the server.
The data to send after the server responds to the command.
Send the specified user command.
Syntax
Public Overloads Function Invoke( _
   ByVal command As String, _
   ByVal data() As Byte _
) As ImapResponse()
Dim instance As Imap
Dim command As String
Dim data() As Byte
Dim value() As ImapResponse
 
value = instance.Invoke(command, data)
public ImapResponse[] Invoke( 
   string command,
   byte[] data
)
public: ImapResponse*[]* Invoke( 
   string* command,
   byte[]* data
) 
public:
array<ImapResponse^>^ Invoke( 
   String^ command,
   array<byte>^ data
) 

Parameters

command
The command to send to the server.
data
The data to send after the server responds to the command.

Return Value

An ImapResponse array representing the response(s) from the server.
Exceptions
ExceptionDescription
ProtocolExceptionBad IMAP protocol response received from server.
System.Net.Sockets.SocketExceptionSocket connectivity problem.
Remarks

This is useful for communicating with servers that recognize proprietary commands not included in the Imap component model.

data is sent as a literal following any continuation responses from the IMAP server. This follows the APPEND command model, where the APPEND command is issued, the server issues a continuation response, and the actual message data is then sent.

See Also

Reference

Imap Class
Imap Members
Overload List


PowerTCP Mail for .NET Documentation Version 4.3
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic